package cn.wanyan.app升级;

import java.util.Date;

public class App {
private String date;
private String username;
private String appname;
private String storename;
private String minverson;
private String maxversion;



public App(String date, String username, String appname, String storename, String minverson, String maxversion) {
	super();
	this.date = date;
	this.username = username;
	this.appname = appname;
	this.storename = storename;
	this.minverson = minverson;
	this.maxversion = maxversion;
}

public App() {
	super();
}

public String getDate() {
	return date;
}

public void setDate(String date) {
	this.date = date;
}

public String getUsername() {
	return username;
}

public void setUsername(String username) {
	this.username = username;
}

public String getAppname() {
	return appname;
}

public void setAppname(String appname) {
	this.appname = appname;
}

public String getStorename() {
	return storename;
}

public void setStorename(String storename) {
	this.storename = storename;
}

@Override
public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + ((appname == null) ? 0 : appname.hashCode());
	result = prime * result + ((date == null) ? 0 : date.hashCode());
	result = prime * result + ((maxversion == null) ? 0 : maxversion.hashCode());
	result = prime * result + ((minverson == null) ? 0 : minverson.hashCode());
	result = prime * result + ((storename == null) ? 0 : storename.hashCode());
	result = prime * result + ((username == null) ? 0 : username.hashCode());
	return result;
}

@Override
public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (getClass() != obj.getClass())
		return false;
	App other = (App) obj;
	if (appname == null) {
		if (other.appname != null)
			return false;
	} else if (!appname.equals(other.appname))
		return false;
	if (date == null) {
		if (other.date != null)
			return false;
	} else if (!date.equals(other.date))
		return false;
	if (maxversion == null) {
		if (other.maxversion != null)
			return false;
	} else if (!maxversion.equals(other.maxversion))
		return false;
	if (minverson == null) {
		if (other.minverson != null)
			return false;
	} else if (!minverson.equals(other.minverson))
		return false;
	if (storename == null) {
		if (other.storename != null)
			return false;
	} else if (!storename.equals(other.storename))
		return false;
	if (username == null) {
		if (other.username != null)
			return false;
	} else if (!username.equals(other.username))
		return false;
	return true;
}

@Override
public String toString() {
	return  date + "\t" + username + "\t" + appname + "\t" + storename+ "\t" + minverson + "\t" + maxversion;
}



}
